@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Toast 深色主题样式 */
.dark [data-sonner-toast] {
  --toast-bg: #1f2937;
  --toast-color: #f9fafb;
  --toast-border: #374151;
}

/* Toast 动画效果 */
[data-sonner-toast] {
  animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Toast 关闭按钮样式 */
[data-sonner-toast] [data-close-button] {
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.6;
  transition: opacity 0.2s;
}

[data-sonner-toast] [data-close-button]:hover {
  opacity: 1;
}